﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CloudClass.Models;

namespace CloudClass.ViewModels
{
    public class ClassIndexViewModel
    {
        public List<CourseClassify> CourseClassifies { get; set; }

        public List<CourseClassify> SubCourseClassifies { get; set; }

        public List<CourseInfo> CourseInfos { get; set; }

        public dynamic Pager { get; set; }

        public ClassIndexOptions ClassIndexOptions { get; set; }
    }

    public class ClassIndexOptions
    {
        /// <summary>
        /// 0为显示所有课程
        /// </summary>
        public int Catelog{ get; set; }
        /// <summary>
        /// 是否最热排序1是0否
        /// </summary>
        public int Hotest { get; set; }

        /// <summary>
        /// 是否免费排序1是 0全部 2付费
        /// </summary>
        public int Free { get; set; }
    }

    public class ClassIndexCatelog
    {
        public List<CourseClassify> CourseClassifies { get; set; }

        public List<CourseClassify> SubCourseClassifies { get; set; }

        public UserInfo UserInfo { get; set; }
    }

    public class ClassListPage
    {
        public List<CourseInfo> CourseInfos { get; set; }

        public int Count { get; set; }
    }
}